package com.youzheng.mapper;

import com.youzheng.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {
    List<Product> findAllProducts(@Param("name")String pname);
    Product findByPid(Integer pid);
    void updateProduct(Product product);

    void deleteProduct(Integer id);
}
